package com.pctc.dao;


import com.pctc.domain.Book;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface BookMapper {


    @Select("select * from tb_book where id = #{id}")
    Book findBookById(Integer id);

    @Insert("insert into tb_book(name,press,author) values(#{name},#{press},#{author})")
    int addBook(Book book);

}

